package cn.kxm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.kxm.dao.PartDetailMapper;
import cn.kxm.pojo.PartDetail;
import cn.kxm.service.PartDetailService;
@Service
public class PartDetailServiceImpl implements PartDetailService {
    @Autowired
	private PartDetailMapper detailMapper;
	
	@Override
	public int addPartDetail(PartDetail detail) {
		return detailMapper.addPartDetail(detail);
	}

	@Override
	public PartDetail getPartDetailByPartCode(String code) {
		return detailMapper.getPartDetailByPartCode(code);
	}

	@Override
	public int updatePartDetailByDetail(PartDetail detail) {
		return detailMapper.modifyPartDetailByDetail(detail);
	}

	@Override
	public int removePartDetailByPartCode(String code) {
		return detailMapper.removePartDetailByPartCode(code);
	}

}
